home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
library
/
rqtlsusr.lha
/
ReqTools
/
RexxReqTools
/
Examples
/
TTXARexx.lha
/
OpenMacro.ttx
< prev
next >
Wrap
Text File
|
1993-10-21
|
632b
|
30 lines
/* $VER: OpenMacro.ttx 1.0 (19.02.93) */
OPTIONS RESULTS
LastMacro = GetClip( 'TTX_LastMacro' )
IF LastMacro = "" THEN LastMacro = "REXX:"
DirName = ""
Index = LastPos( '/', LastMacro )
IF Index ~= 0 THEN DO
DirName = Left( LastMacro, Index )
END
ELSE DO
Index = Index( LastMacro, ":" )
IF Index ~= 0 THEN DO
DirName = Left( LastMacro, Index )
END
END
FileName = rtFileRequest( DirName, , "Select file to open as macro", "_Open", "RTFI_Flags=FREQF_PatGad RTFI_MatchPat=#?.ttx RT_PubScrName=TURBOTEXT" )
IF rtResult = 1 THEN DO
OpenClip FileName
SetClip( 'TTX_LastMacro', FileName )
END
CALL rtFreeFileBuffer